package demo;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description: 学习file标准库中get用法
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2024-03-26  12:20
 */
public class IODemo1 {
    public static void main(String[] args) throws IOException {
        //File file = new File("/Library/test/test.txt");
        File file = new File("./test.txt");
        System.out.println(file.getParent());
        System.out.println(file.getName());
        System.out.println(file.getPath());
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getCanonicalPath());
    }
}
